package com.ruibang.glass.material.mapper;

import com.ruibang.glass.material.domain.resp.external.ContentTypeStartTime;
import com.ruibang.glass.material.domain.resp.external.RackBindDetail;
import com.ruibang.glass.material.dto.CpBcpLotDTO;
import com.ruibang.glass.material.entity.MaterialLotItem;
import com.teaming.cloud.framework2.autoconfigure.dynamic.datasource.annotation.DS;
import com.teaming.cloud.framework2.autoconfigure.mybatisplus.mapper.CommonMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 容器中玻璃绑定状态信息 Mapper 接口
 * </p>
 *
 * @author wujie
 * @since 2024-02-05
 */
@Mapper
@DS("glass")
public interface MaterialLotItemMapper extends CommonMapper<MaterialLotItem> {

    List<MaterialLotItem> queryGlassBindByParams(@Param("bindId") String bindId);

    int getCountByBindId(@Param("bindId") String bindId);

    List<ContentTypeStartTime> getLotItemTypeStartTime();

    void updateCodeLotItem(@Param("startTime") String startTime);

    void updateHotLotItem(@Param("startTime") String startTime);

    List<RackBindDetail> querySLRackBindDetail(@Param("startTime") String startTime);

    List<RackBindDetail> queryBCRackBindDetail(@Param("startTime") String startTime);

    List<CpBcpLotDTO> getContentLotIdAndCount();
}
